home *** CD-ROM | disk | FTP | other *** search
- on PrintText textString
- if the machineType = 256 then
- set printingFont to "arial"
- set XObjFile to "pmatic.dll"
- else
- set printingFont to "helvetica"
- set XObjFile to "pmatic.xobj"
- end if
- openXLib(XObjFile)
- set printer to PrintOMatic(mnew)
- if not objectp(printer) then
- alert("There is no currently selected printer. Printing features are disabled.")
- else
- printer(mSetMargins, 72, 72, 72, 72)
- set w to printer(mGetPageWidth)
- set h to printer(mgetpageheight)
- printer(mSetTextFont, printingFont)
- printer(mSetTextSize, 10)
- printer(mSetTextStyle, "normal")
- printer(mNewPage)
- printer(mTextBox, 0, 0, w, h, 0)
- printer(mSetText, textString, 1)
- if printer(mDoJobSetup) = 1 then
- updateStage()
- printer(mPrint)
- end if
- printer(mdispose)
- end if
- closeXLib(XObjFile)
- end
-